<?php

class Core_Table_Customer_Shop extends Kd_Data_Table {

    public function __construct() {

    }

    public function getByPoi($poiid) {
        return Kd_Data_Factory::getQueryDcl()
                ->from($this->getName())
                ->where()->eq('poi_id', ':poiId:s')->closest()
                ->addParameter('poiId', $poiid)
                ->fetch()
                ->getFirstRow();
    }

}